body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.date {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    font-size: 0.9em;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.question-group {
    margin-bottom: 20px;
}

.question-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: bold;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.analysis {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f7ff;
    border-radius: 5px;
}

.analysis h2 {
    color: #2980b9;
    margin-top: 0;
}

.chat-container {
    height: 500px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    animation: fadeIn 0.3s ease-in;
}

.message.assistant {
    background-color: #f0f7ff;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.message.user {
    background-color: #e3f2fd;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.input-area textarea {
    flex: 1;
    margin: 0;
}

.input-area .btn {
    align-self: flex-end;
}

.progress-bar {
    height: 4px;
    background-color: #eee;
    border-radius: 2px;
    margin-top: 20px;
}

.progress {
    height: 100%;
    background-color: #3498db;
    border-radius: 2px;
    transition: width 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.typing-indicator {
    padding: 10px;
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #90caf9;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.history-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.history-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.month-group {
    margin-bottom: 30px;
}

.month-group h3 {
    color: #34495e;
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
}

.review-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.review-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.review-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.review-date {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
}

.review-time {
    font-size: 0.9em;
    color: #666;
}

.no-records {
    text-align: center;
    color: #666;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    margin: 0;
}

.actions {
    display: flex;
    gap: 10px;
}

.completion-actions {
    margin-top: 20px;
    text-align: center;
}

.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.version {
    font-size: 0.9em;
    color: #666;
} 